/*
 * @Description:
 * @Author: hui
 * @Date: 2022-02-18 11:53:22
 * @LastEditTime: 2022-02-22 12:26:42
 */
import { createStore } from 'vuex';
import { SET_MENU_COLLAPSE } from './mutation-types';
import user from './user/index';
// Create a new store instance.
export default createStore({
	'state': {
		'menuCollapse': 0
	},
	'mutations': {
		[SET_MENU_COLLAPSE](state: any, type: number) {
			state.menuCollapse = type;
		}
	},
	'modules': {
		user
	}
});
